<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    // +----------------------------------------------------------------------
    // | 应用设置
    // +----------------------------------------------------------------------
    'template'               => [
        // 模板引擎类型 支持 php think 支持扩展
        'view_suffix'  => 'html',

        //开启布局
        'layout_on'     =>  true,
        'layout_name'   =>  'layout',

        //导入标签库
        'taglib_pre_load'     =>    'app\index\taglib\Mytag', 
    ],

    //模版替换常量
    'view_replace_str'  =>  [
    '__PUBLIC__'=>'/static',
    '__ROOT__' => '/',
    '__INDEX__' => '/static/index',
    ],

    //文件上传
    'upload_path' => '/uploads/index',

    //购物车cookie过期时间
    'cart_cookie_lifetime' => 604800,

    // 最近浏览商品cookie过期时间
    'view_cookie_lifetime' => 604800,

    /************** 发邮件的配置 ***************/
    'MAIL_ADDRESS' => 'wq1746939103@163.com',   // 发货人的email
    'MAIL_FROM' => '京西商城',      // 发货人姓名
    'MAIL_SMTP' => 'smtp.163.com',      // 邮件服务器的地址
    'MAIL_LOGINNAME' => 'wq1746939103@163.com',   
    'MAIL_PASSWORD' => 'wq1746939103',


];
